{% extends 'mbase.html' %}
{% block title %}Brispon{% endblock %}
{% block stylesheet %}
{{ block.super }}
{% endblock%}

{% block javascript %}
{{ block.super }}
<script>
</script>
{% endblock%}

{% block content %}

<table>      
  <thead>
    <tr>
      <th>Date</th>
      <th>Event</th>
      <th>Contents</th>
      <th>Store</th>
    </tr>
  </thead>
  <tbody>
	<tr>
	  <td>{{ event.sdate.year }}{{ event.sdate.month }}{{ event.sdate.day }}-{{ event.edate.year }}{{ event.edate.month }}{{ event.edate.day }}</td>
	  <td>{{ event.title }}</td>
	  <td>{{ event.description }} [coupon]</td>
	  <td><a href="{{ event.store.url }}">{{ event.store }}</a></td>
    </ul>
  </tbody>
</table>

<ul>
    {% for c in event.get_coupons %}
    <li>
        {{ c.name }}
    </li>
    {% endfor %}
</ul>
{% endblock %}
